
/**
 * 页面跳转
 * @param {Object} url
 */
const to = (url) => {
	uni.navigateTo({
		url: url
	});
}

const toast = (title, duration = 2000, mask = false, icon = 'none') => {
	//统一提示方便全局修改
	if (Boolean(title) == false) {
		return
	}
	uni.showToast({
		title,
		duration,
		mask,
		icon
	})
}

const setTimeout = () => {
	
}


export default {
	to,
	toast,
}
